<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/js.vue.js"></script>
</head>
<body>
    <div id="app">
         <hello @aa="fg"><hello>
    </div>
    <script>
    let app=Vue.createApp({
        methods:{
            fg(){
                alert("hello")
            }
        },
        components:{
            hello:{
                props:{
                    list:{
                        type:Array
                    }
                },
                methods:{
                       submit(){
                         this.$emit("aa")
                        
                       },
                },
                template:`<button @click="submit">点击</button>`
            }
        },
        data(){
            return{
                list:[{name:"张三",age:18,acc:15866901454}],
                

            }
        }
    });
    app.mount("#app")
    </script>
</body>
</html>